package com.smart.campus.controller;

import com.smart.campus.dto.ShAsk;
import com.smart.campus.interfaces.ShAskServiceApi;
import com.smart.campus.pojo.PagedResponse;
import com.smart.campus.service.ShAskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ShAskController implements ShAskServiceApi {
    @Autowired
    private ShAskService shAskService;

    @Override
    public List<ShAsk> findAskList() {
        return shAskService.findAskList();
    }

    @Override
    public PagedResponse<ShAsk> pageShAsk(ShAsk shAsk, Integer pageNum, Integer pageSize) {
        return shAskService.pageShAsk(shAsk,pageNum,pageSize);
    }
}
